<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <link rel="stylesheet" href="__STATIC__/index/css/quan_common.css">
  <link rel="stylesheet" href="__STATIC__/index/css/single.css">
  <link rel="stylesheet" href="__STATIC__/index/css/common.css">
  <link rel="stylesheet" type="text/css" href="__STATIC__/index/css/bootstrap.css"/>
  <title>系统中心</title>
</head>
  <script type="text/javascript">
  	function details(){
  		$('#content_details').toggle();
  		
  	}
  </script>
  <style>
	.seller_message a{
		color: #3286ff;
		background: #eff6ff;
	}
</style>
<body>
	{include file='common/heade'}
	<div class="single_center w_1200">
	<!--左侧导航-->
	{include file='common/left'}
  <div class="single_r_center" style="background:#fff;">
    <div class="single_h3_tab row-s">
      <h3 class="col-6">
        系统通知
      </h3>
      <div class="ov_h"></div>
    </div>
    <div class="single_r_center_layout">
      <p class="hr"></p>
      <ul class="single_feedback">
      		{foreach $messages as $v}
        <li class="row-s">
          <div class="time col-3">
          	{if $v.type!=3 }
            <p>来自：管理员</p>
            {else}
            <p>来自:系统平台</p>
            {/if}
            <p class="col-secondary">{$v['add_time']|date="Y-m-d H:i:s",###}</p>
          </div>
          <div class="col-9">
          	{if $v.type==1}
            <h5 class="bt">
                          商品相关通知
            </h5>
            <div class="nr col-gray">
              {$v.message}<a target="_blank" href="{:url('seller/myGoods',array('id'=>$v.id))}">[查看]</a>
            </div>
            {elseif $v.type==2}
            <h5 class="bt">
                            充值相关消息  
            </h5>
             <div class="nr col-gray">
              {$v.message}&nbsp;<span href="#" onclick="details()" style="color: #2e7ae6;cursor:pointer;">[点击详情]</span>
            </div>
            <div class="nr col-gray" id="content_details" style="display:none;">
              {$v.content}
            </div>
            {elseif $v.type=3}
             <h5 class="bt">
                               系统消息
            </h5>
             <div class="nr col-gray">
              {$v.title}<a target="_blank" href="{:url('seller/messageDetails',array('id'=>$v.id))}">[查看]</a>
            </div>
            {/if}
            
          </div>
        </li>
     {/foreach}
        
      </ul>
     <div align="center" class="table">
         {$messages->render()}
      </div>
    </div>

  </div>
  </div>
  {include file='common/bottom'}
</body>

</html>